package com.smartfactory.sail.vo.storage;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.entity.ItemInspectioncriteria;
import com.smartfactory.sail.entity.enums.StorageStatusEnum;
import com.smartfactory.sail.vo.storageinspection.AddStorageInRecordReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 王巨壁
 * @title: MaterialStorageInfo
 * @projectName smart-sail
 * @description: TODO
 * @date 2019/8/2511:20
 */
@Data
public class ItemStorageInfo {
    //库存数量  原料名称  料号  图纸编号  供应商名称 库存状态  材质  领料上限  库存下限  库存上限  检测标准  入库明细  原料图纸

    private Long itemId;

    @ApiModelProperty(value = "料号")
    private String code;

    @ApiModelProperty(value = "原料名称")
    private String name;

    @ApiModelProperty(value = "描述没有默认就使用name的值")
    private String info;

    @ApiModelProperty(value = "图纸编号")
    private String drawingCode;

    @ApiModelProperty(value = "材料质地")
    private String texture;

    @ApiModelProperty(value = "多个生产图纸id用符号|隔开")
    private String productDrawings;


    //库存----------------------------------------------
    @ApiModelProperty(value = "供应商|客户")
    private String custName;

    @ApiModelProperty(value = "待领取数量")
    private Integer size;

    @ApiModelProperty(value = "库存数量")
    private Integer allocatableSize;

    @ApiModelProperty(value = "库存上限")
    @TableField("upperLimit")
    private Integer upperLimit;

    @ApiModelProperty(value = "领取上限")
    @TableField("receiveUpperLimit")
    private Integer receiveUpperLimit;

    @ApiModelProperty(value = "库存下限")
    @TableField("lowerLimit")
    private Integer lowerLimit;

    @ApiModelProperty(value = "库存状态1.充足2正常(低于上下限平均值)3.不足(低于下限)  1 待入库 2 外发 3检测不过关 4 入库  ")
    @TableField("status")
    private StorageStatusEnum status;

    //检测---------------------------
    /*@ApiModelProperty(value = "标准")
    private String standard;

    @ApiModelProperty(value = "检验项目")
    private String project;

    @ApiModelProperty(value = "检验频次")
    private String frequency;

    @ApiModelProperty(value = "检验方法")
    private String method;

    @ApiModelProperty(value = "检验工具")
    private String tools;*/
    //
    @ApiModelProperty(value = "检测标准")
    private List<ItemInspectioncriteria> itemInspectioncriteria;

    @ApiModelProperty(value = "入库详情")
    private AddStorageInRecordReq storageRecords;
}
